<?php $this->extend('comm/page');?>

<?php $this->block('js'); ?>
<script>
window.lineData = '<?php echo $lineData; ?>'
</script>
<?php $this->blockEnd(); ?>

<div class="row">
    <?php if($showDeadline): ?>
    <div class="col-xs-12">
        <div class="alert alert-danger alert-dismissable">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            注意：您的账号即将过期，请联系管理员进行续期。
        </div>
    </div>
    <?php endif; ?>

    <div class="col-md-2 col-sm-4 col-xs-12">
        <div class="panel panel-info">
            <div class="panel-heading">
                <div class="panel-title text-black">快捷操作</div>
            </div>
            <div class="panel-body">
                <div class="oper-item">
                    <button style="padding-left: 0;" class="btn btn-link"
                        data-url="<?php echo $container->url->build('/admin/console/edit')?>">修改个人信息</button>
                </div>
            </div>
        </div>
    </div>

    <div class="col-md-10 col-sm-8 col-xs-12">
        <div class="row">
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-yellow"><i class="fa fa-database"></i></span>
                    <div class="info-box-content">
                        <span class="info-box-text">总应用数</span>
                        <span class="info-box-number"><?php echo $this->get('appCount', 0)?></span>
                    </div>
                </div>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-aqua"><i class="fa fa-user-plus"></i></span>
                    <div class="info-box-content">
                        <span class="info-box-text">总客服数</span>
                        <span class="info-box-number"><?php echo $this->get('waiterCount', 0)?></span>
                    </div>
                </div>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-green"><i class="fa fa-snapchat-square"></i></span>
                    <div class="info-box-content">
                        <span class="info-box-text">总接待数</span>
                        <span class="info-box-number"><?php echo $this->get('msgCount', 0)?></span>
                    </div>
                </div>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-12">
                <div class="info-box">
                    <span class="info-box-icon bg-green"><i class="fa fa-calendar-o"></i></span>
                    <div class="info-box-content">
                        <span class="info-box-text">总留言数</span>
                        <span class="info-box-number"><?php echo $this->get('stayCount', 0)?></span>
                    </div>
                </div>
            </div>
            <div class="clearfix"></div>
            <!-- 折线图 -->
            <div class="col-sm-12">
                <div class="panel panel-success">
                    <div class="panel-heading">
                        <div class="panel-title text-black">通信统计图</div>
                    </div>
                    <div class="panel-body">
                        <div id="app"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>